package com.company.poker.protocol;

/**
 * Description of class.
 * Created 4/23/13 4:56 PM
 *
 * @author andrey.rodin@playtech.com
 */

public enum ProtocolType {
    BINARY(0),
    WEB_SOCKET(1),
    STRING(2)
    ;

    private int code;

    ProtocolType(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public static ProtocolType getByCode(int i) {
        return values()[i];
    }
}
